home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Dev / misc / LOCCounter.lha / LOCCounter / src / File.h < prev    next >
C/C++ Source or Header  |  2004-08-17  |  796b  |  41 lines

  1. #ifndef LOC_FILE_H
  2. #define LOC_FILE_H
  3. /****************************************************************************
  4. *
  5. * $RCSfile: File.h $
  6. * $Revision: 2.5 $
  7. * $Date: 2004/08/17 22:08:50 $
  8. * $Author: ssolie $
  9. *
  10. *****************************************************************************
  11. *
  12. * Copyright (c) 2004 Steven Solie.  All Rights Reserved.
  13. *
  14. *****************************************************************************
  15. *
  16. * File component
  17. *
  18. * Each File object represents an AmigaDOS file.
  19. */
  20.  
  21. #include "Main.h"
  22.  
  23. #include <dos/dos.h>
  24.  
  25.  
  26. class File {
  27. public:
  28.     File();
  29.     ~File();
  30.     void open(const char* name, int32 mode);
  31.     int32 readString(char* buffer, uint32 size);
  32.     uint32 getLength() const;
  33.     uint32 getProtection() const;
  34. private:
  35.     BPTR m_handle;
  36.     FileInfoBlock* m_info;
  37. };
  38.  
  39.  
  40. #endif
  41.